<?php
class Site_Model_DbTable_HasNews extends Zend_Db_Table_Abstract {
	protected $_name = 'site_has_news';
	
	protected $_referenceMap    = array(
        'News' => array(
            'columns'           => 'news_id',
            'refTableClass'     => 'News_Model_DbTable_News',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
            'onDelete'		=> self::CASCADE
        ),
        'Site' => array(
            'columns'           => 'site_id',
            'refTableClass'     => 'Site_Model_DbTable_Site',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
            'onDelete'		=> self::CASCADE
        )
    );
}